/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.server.modules.sys.entity.businessrecord;

import com.server.common.persistence.DataEntity;
import com.server.common.utils.MD5Utils;
import com.server.modules.sys.entity.member.Member;

/**
 * 商务人员谈单记录表Entity
 * @author 金
 * @version 2017-04-18
 */
public class TBusinessRecord extends DataEntity<TBusinessRecord> {
	
	private static final long serialVersionUID = 1L;
	protected String record;		// record
	protected Member member;		// user_id
	protected String md5;          //Md5
	private  String user_id;



	public void updateMd5() throws Exception {
		String s = record+member.getId()+delFlag;
		md5=MD5Utils.md5Encode(s);
	}

	public TBusinessRecord() {
		super();
	}

	public TBusinessRecord(String id){
		super(id);
	}

	public String getRecord() {
		return record;
	}

	public void setRecord(String record) {
		this.record = record;
	}

	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	public String getUser_id() {
		if (member !=null) return member.getId();
		else return null;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	public String getMd5() {
		return md5;
	}

	public void setMd5(String md5) {
		this.md5 = md5;
	}
}